package com.design.model;

import java.awt.*;

/**
 * 具体享元类
 *
 * @author lw
 * @date 2023/12/4 14:50
 **/
public class Circle implements Shape{

    private Color color;

    public Circle(Color color) {
        this.color = color;
    }

    @Override
    public void draw(int x, int y) {
        System.out.println("Drawing a " + color + " circle at (" + x + "," + y + ")");
    }
}
